//
//  MenuVC.m
//  IOSFrameWork
//
//  Created by ThomasTran on 6/11/14.
//  Copyright (c) 2014 mtoanmy. All rights reserved.
//

#import "MenuVC.h"

@implementation MenuVC

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        UIView* xibView = [[[NSBundle mainBundle] loadNibNamed:@"MenuVC" owner:self options:nil] objectAtIndex:0];
        [xibView setFrame:[self bounds]];
        [self addSubview:xibView];
    }
    return self;
}

- (void) setVC:(UIViewController *)vc
{
    viewCurrent = vc;
}

- (IBAction)onBack:(UIButton *)sender
{
    NSLog(@"onBack");
    [viewCurrent.navigationController popViewControllerAnimated:YES];
}

@end
